package com.common.base;

import java.util.Collection;

/**
 * 通用的实体-用于jqgrid list
 * @author niuchong
 * @param <T>
 * @date 2014-10-21
 */
public class CommonArrayPage<T> {

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	private String code;
	private int currentpage;//当前页数
	private int totalpage;//总页数
	private int recordcount;//总记录数
	private Collection<T> items;//实体集合泛型
	
	
	public CommonArrayPage() {
		super();
		this.setCode("0");
		// Auto-generated constructor stub
	}


	public CommonArrayPage(int currentpage, int totalpage, int recordcount,
                           Collection<T> items) {
		super();
		this.setCode("0");
		this.currentpage = currentpage;
		this.totalpage = totalpage;
		this.recordcount = recordcount;
		this.items = items;
	}


	public int getCurrentpage() {
		return currentpage;
	}


	public void setCurrentpage(int currentpage) {
		this.currentpage = currentpage;
	}


	public int getTotalpage() {
		return totalpage;
	}


	public void setTotalpage(int totalpage) {
		this.totalpage = totalpage;
	}


	public int getRecordcount() {
		return recordcount;
	}


	public void setRecordcount(int recordcount) {
		this.recordcount = recordcount;
	}


	public Collection<T> getItems() {
		return items;
	}


	public void setItems(Collection<T> items) {
		this.items = items;
	}


	
	
	
	
	
}
